import {lazy} from "react"
// 配置路由数组
const homechild = [
    {
        path:"/index/home",
        element:lazy(()=>import("../pages/Home/Home"))
    },
    {
        path:"/index/online",
        element:lazy(()=>import("../pages/Home/Onlinereta"))
    },
    {
        path:"/index/shopcar",
        element:lazy(()=>import("../pages/Home/Shopcar"))
    },
    {
        path:"/index/my",
        element:lazy(()=>import("../pages/Home/My"))
    }
]
const routerconfig = [
    {
        path:"/login",
        element:lazy(()=>import("../pages/Login"))
    },
    {
        path:"/index",
        element:lazy(()=>import("../pages/Home/Index")),
        children:homechild
    },
    {
        from:"/",
        to:"/index/home"
    }

]
export default routerconfig